package com.lst.api.constant;

/**
 * @author: Frank
 * @date: 2019/12/30 14:33
 * @version: V1.0
 */
public enum RegexEnum {

    MOBILE("手机号正则", "^1[3|4|5|6|7|8|9][0-9]\\d{8}$"),
    ID_CARD_NO("身份证正则", "^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$");

    RegexEnum(String title, String regex){
        this.title = title;
        this.regex = regex;
    }
    private String title;
    private String regex;

    public String getTitle() {
        return regex;
    }
    public String getRegex() {
        return regex;
    }
}
